package com.lamp.JsonClass;

import java.util.List;
import com.lamp.main.LoginActivity;

public class MessageListStatus {
	private int statusCode;
	private int total;
	private List<MessageList> messageList;

	public int getStatusCodoe() {
		return this.statusCode;
	}

	public int getTotal() {
		return this.total;
	}

	public List<MessageList> getMessageList() {
		return this.messageList;
	}

	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public void setMessageList(List<MessageList> messageList) {
		this.messageList = messageList;
	}

	public int getUserId() {
		for (MessageList list : messageList) {
			int uId = list.getUserId();
			if (uId != 0 && uId != LoginActivity.lampLogin.userId)
				return uId;
		}
		return 0;
	}
}
